Skip to main content

Get User Threshold List

GET : http://<base_url>/digipay/v3/profile_threshold/user_threshold

This api is used to assign threshold to the user and create use r threshold

BODY PARAMS:-

ParameterTypeDescriptionValue
user_idIntunique user_id assigned to the threshold detailb9a4cbeeedd340509cb1ac628cae2973
product_codeStringunique product_code defined for productsCIB
currency_idStringunique currency_id assigned to the currency at the time of creating currencyb9a4cbeeedd340509cb1ac628cae2973
payment_modeIntit will containe payment mode value1

HEADERS:-

ParameterTypeDescriptionValue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request GET \
--url 'http://192.168.1.102:8014/digipay/v3/profile_threshold/user_threshold?user_id=b9a4cbeeedd340509cb1ac628cae2973&product_code=CIB%2FCOC&currency_id=b9a4cbeeedd340509cb1ac628cae2973&payment_mode=1' \
--header 'Authorization: Token duik7309njdlkhdauhknksadhjkas986876sd873j' \
--header 'CompanyID: 7753ad6bd8cf48f5b1312fd21eb36588' \
--header 'accept: application/json'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"user_threshold": {
"id": "116a51aa2b7d459a8b7e3db7dcf5e70a",
"user_type" : 2,
"user_id": "116a51aa2b7d459a8b7e3db7dcf5e70a",
"threshold_id": "116a51aa2b7d459a8b7e3db7dcf5e70a",
"threshold_detail_id": "116a51aa2b7d459a8b7e3db7dcf5e70a",
"product_id": "116a51aa2b7d459a8b7e3db7dcf5e70a",
"product_code": "CIB",
"threshold_type": 2,
"threshold_amount": {
"daily_usage" : 100
"weekly_usage" : 200,
"monthly_usage": 300
},
"threshold_no_txn" : {
"daily_usage" : 100
"weekly_usage" : 200,
"monthly_usage": 300
},
"threshold_apply_on": 1,
"payment_mode": null }
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400BAD REQUEST
404NOT FOUND
500INTERNAL SERVER ERROR